﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/AdminMaster.Master" AutoEventWireup="true" CodeBehind="AdminCompany.aspx.cs" Inherits="TravelLink.WebApp.Admin.AdminCompany" %>
<%@ Register assembly="DevExpress.Web.ASPxGridView.v11.1, Version=11.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxGridView" tagprefix="dx" %>
<%@ Register assembly="DevExpress.Web.ASPxEditors.v11.1, Version=11.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxEditors" tagprefix="dx" %>
<%@ Register assembly="DevExpress.Web.ASPxGridView.v11.1.Export, Version=11.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxGridView.Export" tagprefix="dx" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .style1
        {
            width: 920px;
        }
        .style2
        {
            width: 100px;
        }
        .style3
        {
            width: 820px;
            text-align:left;
        }
        .style4
        {
            width: 800px;
        }
        .style6
        {
            width: 100%;
        }
        .style7
        {
            width: 600px;
        }
        .style8
        {
            width: 500px;
            text-align:left;
        }
        .style9
        {
            width: 300px;
        }
    </style>
    <SCRIPT type=text/javascript>
        function addnewcompany() {
            TravelLink.WebApp.Admin.AdminWebService.AddNewCompany(onaddnewcompanysuccess, WSError);
        }
        function onaddnewcompanysuccess(result) {
            agvcompany.Refresh();
            agvcompany.StartEditRowByKey(result);
        }
        function WSError(result) {
               alert(result._message);
        }
    </SCRIPT>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
                    <asp:ScriptManager ID="ScriptManager1" runat="server">
                        <Services>
                            <asp:ServiceReference Path="AdminWebService.asmx" />
                        </Services>
                    </asp:ScriptManager>
    <table cellpadding="0" cellspacing="0" class="style1">
        <tr>
            <td>
                <table class="style1">
                    <tr>
                        <td>
                            <dx:ASPxLabel ID="ASPxLabel1" runat="server" Text="注册时间从：">
                            </dx:ASPxLabel>
                        </td>
                        <td>
                            <dx:ASPxDateEdit ID="adefrom" runat="server">
                            </dx:ASPxDateEdit>
                        </td>
                        <td>
                            <dx:ASPxLabel ID="ASPxLabel2" runat="server" Text="至：">
                            </dx:ASPxLabel>
                        </td>
                        <td>
                            <dx:ASPxDateEdit ID="adeto" runat="server">
                            </dx:ASPxDateEdit>
                        </td>
                        <td>
                            <dx:ASPxLabel ID="ASPxLabel3" runat="server" Text="关键字：">
                            </dx:ASPxLabel>
                        </td>
                        <td>
                            <dx:ASPxTextBox ID="atbkey" runat="server" Width="160px">
                            </dx:ASPxTextBox>
                        </td>
                        <td>
                            <dx:ASPxButton ID="abtnExport" runat="server" onclick="abtnExport_Click" 
                                Text="导出excel">
                            </dx:ASPxButton>
                        </td>
                        <td>
                            <dx:ASPxButton ID="abtnSearch" runat="server" Text="搜索" 
                                onclick="abtnSearch_Click">
                            </dx:ASPxButton>
                        </td>
                        <td>
                            <dx:ASPxButton ID="abtnAdd" runat="server" Text="新增"
                                AutoPostBack="False">
                                <ClientSideEvents Click="function(s, e) {
	addnewcompany();
}" />
                            </dx:ASPxButton>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td>                
                <dx:ASPxGridView ID="ASPxGridView1" runat="server" Width="931px" 
                    AutoGenerateColumns="False" DataSourceID="LinqDataSource1" 
                    KeyFieldName="CompanyCode" ClientInstanceName="agvcompany" 
                    EnableViewState="False">
                    <ClientSideEvents EndCallback="function(s, e) {

}" CustomButtonClick="function(s, e) {
      var url='AdminCompanyService.aspx?id='+agvcompany.GetRowKey(e.visibleIndex);
	  self.location=url;
}" />
                    <Columns>
                        <dx:GridViewCommandColumn ButtonType="Button" Caption="操作" VisibleIndex="29">
                            <EditButton Text="查看" Visible="True">
                            </EditButton>
                            <NewButton Text="添加">
                            </NewButton>
                            <DeleteButton Text="删除" Visible="True">
                            </DeleteButton>
                            <CancelButton Text="取消" Visible="True">
                            </CancelButton>
                            <UpdateButton Text="保存" Visible="True">
                            </UpdateButton>
                        </dx:GridViewCommandColumn>
                        <dx:GridViewDataTextColumn Caption="企业编号" FieldName="CompanyCode" 
                            ReadOnly="True" VisibleIndex="0" Width="230px">
                        </dx:GridViewDataTextColumn>
                        <dx:GridViewDataTextColumn Caption="邮箱" FieldName="Email" VisibleIndex="1" 
                            Width="120px">
                        </dx:GridViewDataTextColumn>
                        <dx:GridViewDataTextColumn FieldName="Password" Visible="False" 
                            VisibleIndex="7">
                        </dx:GridViewDataTextColumn>
                        <dx:GridViewDataTextColumn Caption="中文名" FieldName="CompanyName" 
                            VisibleIndex="2" Width="100px">
                        </dx:GridViewDataTextColumn>
                        <dx:GridViewDataTextColumn Caption="英文名" FieldName="CompanyNameEN" 
                            VisibleIndex="3" Width="100px">
                        </dx:GridViewDataTextColumn>
                        <dx:GridViewDataTextColumn FieldName="CompanyLogo" Visible="False" 
                            VisibleIndex="6">
                        </dx:GridViewDataTextColumn>
                        <dx:GridViewDataTextColumn FieldName="BrandingLogo" Visible="False" 
                            VisibleIndex="8">
                        </dx:GridViewDataTextColumn>
                        <dx:GridViewDataTextColumn FieldName="WebSite" Visible="False" VisibleIndex="9">
                        </dx:GridViewDataTextColumn>
                        <dx:GridViewDataTextColumn FieldName="Address" Visible="False" 
                            VisibleIndex="10">
                        </dx:GridViewDataTextColumn>
                        <dx:GridViewDataTextColumn FieldName="BussinessId" Visible="False" 
                            VisibleIndex="11">
                        </dx:GridViewDataTextColumn>
                        <dx:GridViewDataTextColumn FieldName="PostCode" Visible="False" 
                            VisibleIndex="12">
                        </dx:GridViewDataTextColumn>
                        <dx:GridViewDataTextColumn FieldName="CompanyTel" Visible="False" 
                            VisibleIndex="13">
                        </dx:GridViewDataTextColumn>
                        <dx:GridViewDataTextColumn FieldName="CompanyFax" Visible="False" 
                            VisibleIndex="14">
                        </dx:GridViewDataTextColumn>
                        <dx:GridViewDataTextColumn FieldName="ContactPerson" Visible="False" 
                            VisibleIndex="15">
                        </dx:GridViewDataTextColumn>
                        <dx:GridViewDataTextColumn FieldName="ContactTel" Visible="False" 
                            VisibleIndex="16">
                        </dx:GridViewDataTextColumn>
                        <dx:GridViewDataTextColumn Caption="联系人移动电话" FieldName="ContactMobile" 
                            VisibleIndex="4" Width="90px">
                        </dx:GridViewDataTextColumn>
                        <dx:GridViewDataTextColumn FieldName="CityId" Visible="False" VisibleIndex="17">
                        </dx:GridViewDataTextColumn>
                        <dx:GridViewDataDateColumn Caption="创建日期" FieldName="CreateDate" 
                            VisibleIndex="5" Width="80px">
                        </dx:GridViewDataDateColumn>
                        <dx:GridViewDataTextColumn FieldName="RegisterNo" Visible="False" 
                            VisibleIndex="18">
                        </dx:GridViewDataTextColumn>
                        <dx:GridViewDataTextColumn FieldName="IECode" Visible="False" VisibleIndex="19">
                        </dx:GridViewDataTextColumn>
                        <dx:GridViewDataTextColumn FieldName="BCNo" Visible="False" VisibleIndex="20">
                        </dx:GridViewDataTextColumn>
                        <dx:GridViewDataTextColumn FieldName="TrcNo" Visible="False" VisibleIndex="21">
                        </dx:GridViewDataTextColumn>
                        <dx:GridViewDataTextColumn FieldName="BankAccount" Visible="False" 
                            VisibleIndex="22">
                        </dx:GridViewDataTextColumn>
                        <dx:GridViewDataTextColumn FieldName="BankAccountNo" Visible="False" 
                            VisibleIndex="23">
                        </dx:GridViewDataTextColumn>
                        <dx:GridViewDataTextColumn FieldName="BankAccountName" Visible="False" 
                            VisibleIndex="24">
                        </dx:GridViewDataTextColumn>
                        <dx:GridViewDataTextColumn FieldName="CompanyScale" Visible="False" 
                            VisibleIndex="25">
                        </dx:GridViewDataTextColumn>
                        <dx:GridViewDataTextColumn FieldName="CompanyBrief" Visible="False" 
                            VisibleIndex="26">
                        </dx:GridViewDataTextColumn>
                        <dx:GridViewDataDateColumn FieldName="UpdateTime" Visible="False" 
                            VisibleIndex="27">
                        </dx:GridViewDataDateColumn>
                        <dx:GridViewDataTextColumn FieldName="Notes" Visible="False" VisibleIndex="28">
                        </dx:GridViewDataTextColumn>
                        <dx:GridViewDataDateColumn FieldName="Brand" Visible="False" 
                            VisibleIndex="29">
                        </dx:GridViewDataDateColumn>
                        <dx:GridViewDataDateColumn FieldName="EBrand" Visible="False" 
                            VisibleIndex="32">
                        </dx:GridViewDataDateColumn>
                        <dx:GridViewDataDateColumn FieldName="ContactPosition" Visible="False" 
                            VisibleIndex="33">
                        </dx:GridViewDataDateColumn>
                        <dx:GridViewDataDateColumn FieldName="ContactTitleID" Visible="False" 
                            VisibleIndex="30">
                        </dx:GridViewDataDateColumn>
                        <dx:GridViewCommandColumn ButtonType="Button" Caption="管理" Name="FUNC2002" 
                            VisibleIndex="31">
                            <ClearFilterButton Visible="True">
                            </ClearFilterButton>
                            <CustomButtons>
                                <dx:GridViewCommandColumnCustomButton Text="服务管理">
                                </dx:GridViewCommandColumnCustomButton>
                            </CustomButtons>
                        </dx:GridViewCommandColumn>
                    </Columns>
                    <SettingsEditing PopupEditFormModal="True" 
                        PopupEditFormHorizontalAlign="WindowCenter" 
                        PopupEditFormVerticalAlign="WindowCenter" />
                    <SettingsText PopupEditFormCaption="企业信息" />
                    <Templates>
                        <EditForm>
                            <table cellpadding="0" cellspacing="0" class="style1">
                                <tr>
                                    <td class="style1">
                                        <table cellpadding="0" cellspacing="0" class="style1">
                                            <tr>
                                                <td class="style2">
                                                    <dx:ASPxLabel ID="ASPxLabel4" Width="100px" runat="server" Text="公司编号：">
                                                    </dx:ASPxLabel>
                                                </td>
                                                <td class="style3">
                                                    <dx:ASPxLabel Width="500px" ID="alblcompanycode" runat="server" 
                                                        Text='<%# Bind("CompanyCode") %>'>
                                                    </dx:ASPxLabel>
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <table cellpadding="0" cellspacing="0" class="style1">
                                            <tr>
                                                <td class="style1">
                                                    <table cellpadding="0" cellspacing="0" class="style6">
                                                        <tr>
                                                            <td>
                                                                <table cellpadding="0" cellspacing="0" class="style7">
                                                                    <tr>
                                                                        <td class="style2">
                                                                            <dx:ASPxLabel ID="ASPxLabel6" runat="server" Text="企业中文名：" Width="100px">
                                                                            </dx:ASPxLabel>
                                                                        </td>
                                                                        <td class="style8">
                                                                            <dx:ASPxTextBox ID="ASPxTextBox2" runat="server" 
                                                                                Text='<%# Bind("CompanyName") %>' Width="500px">
                                                                            </dx:ASPxTextBox>
                                                                        </td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td class="style2">
                                                                            <dx:ASPxLabel ID="ASPxLabel7" runat="server" Text="企业英文名：">
                                                                            </dx:ASPxLabel>
                                                                        </td>
                                                                        <td class="style8">
                                                                            <dx:ASPxTextBox ID="ASPxTextBox3" runat="server" 
                                                                                Text='<%# Bind("CompanyNameEN") %>' Width="500px">
                                                                            </dx:ASPxTextBox>
                                                                        </td>
                                                                    </tr>
                                                                </table>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td>
                                                                <table cellpadding="0" cellspacing="0" class="style7">
                                                                    <tr>
                                                                        <td class="style2">
                                                                            <dx:ASPxLabel ID="ASPxLabel8" runat="server" Text="品牌中文名：">
                                                                            </dx:ASPxLabel>
                                                                        </td>
                                                                        <td class="style8">
                                                                            <dx:ASPxTextBox ID="ASPxTextBox4" runat="server" Text='<%# Bind("Brand") %>' 
                                                                                Width="500px">
                                                                            </dx:ASPxTextBox>
                                                                        </td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td class="style2">
                                                                            <dx:ASPxLabel ID="ASPxLabel9" runat="server" Text="品牌英文名：">
                                                                            </dx:ASPxLabel>
                                                                        </td>
                                                                        <td class="style8">
                                                                            <dx:ASPxTextBox ID="ASPxTextBox5" runat="server" Text='<%# Bind("EBrand") %>' 
                                                                                Width="500px">
                                                                            </dx:ASPxTextBox>
                                                                        </td>
                                                                    </tr>
                                                                </table>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td>
                                                                <table cellpadding="0" cellspacing="0" class="style7">
                                                                    <tr>
                                                                        <td class="style2">
                                                                            <dx:ASPxLabel ID="ASPxLabel23" runat="server" Text="企业注册号：">
                                                                            </dx:ASPxLabel>
                                                                        </td>
                                                                        <td class="style8">
                                                                            <dx:ASPxTextBox ID="ASPxTextBox16" runat="server" 
                                                                                Text='<%# Bind("RegisterNo") %>' Width="500px">
                                                                            </dx:ASPxTextBox>
                                                                        </td>
                                                                    </tr>
                                                                </table>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td>
                                                                <table cellpadding="0" cellspacing="0" class="style7">
                                                                    <tr>
                                                                        <td class="style2">
                                                                            <dx:ASPxLabel ID="ASPxLabel24" runat="server" Text="进出口企业代码：">
                                                                            </dx:ASPxLabel>
                                                                        </td>
                                                                        <td class="style8">
                                                                            <dx:ASPxTextBox ID="ASPxTextBox17" runat="server" Text='<%# Bind("IECode") %>' 
                                                                                Width="500px">
                                                                            </dx:ASPxTextBox>
                                                                        </td>
                                                                    </tr>
                                                                </table>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td>
                                                                <table cellpadding="0" cellspacing="0" class="style7">
                                                                    <tr>
                                                                        <td class="style2">
                                                                            <dx:ASPxLabel ID="ASPxLabel25" runat="server" Text="经营许可证编号：">
                                                                            </dx:ASPxLabel>
                                                                        </td>
                                                                        <td class="style8">
                                                                            <dx:ASPxTextBox ID="ASPxTextBox18" runat="server" Text='<%# Bind("BCNo") %>' 
                                                                                Width="500px">
                                                                            </dx:ASPxTextBox>
                                                                        </td>
                                                                    </tr>
                                                                </table>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td>
                                                                <table cellpadding="0" cellspacing="0" class="style7">
                                                                    <tr>
                                                                        <td class="style2">
                                                                            <dx:ASPxLabel ID="ASPxLabel26" runat="server" Text="税务登记证编号：">
                                                                            </dx:ASPxLabel>
                                                                        </td>
                                                                        <td class="style8">
                                                                            <dx:ASPxTextBox ID="ASPxTextBox19" runat="server" Text='<%# Bind("TrcNo") %>' 
                                                                                Width="500px">
                                                                            </dx:ASPxTextBox>
                                                                        </td>
                                                                    </tr>
                                                                </table>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td>
                                                                <table cellpadding="0" cellspacing="0" class="style7">
                                                                    <tr>
                                                                        <td class="style2">
                                                                            <dx:ASPxLabel ID="ASPxLabel27" runat="server" Text="银行开户名称：">
                                                                            </dx:ASPxLabel>
                                                                        </td>
                                                                        <td class="style8">
                                                                            <dx:ASPxTextBox ID="ASPxTextBox20" runat="server" 
                                                                                Text='<%# Bind("BankAccount") %>' Width="500px">
                                                                            </dx:ASPxTextBox>
                                                                        </td>
                                                                    </tr>
                                                                </table>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td>
                                                                <table cellpadding="0" cellspacing="0" class="style7">
                                                                    <tr>
                                                                        <td class="style2">
                                                                            <dx:ASPxLabel ID="ASPxLabel28" runat="server" Text="银行帐号：">
                                                                            </dx:ASPxLabel>
                                                                        </td>
                                                                        <td class="style8">
                                                                            <dx:ASPxTextBox ID="ASPxTextBox21" runat="server" 
                                                                                Text='<%# Bind("BankAccountNo") %>' Width="500px">
                                                                            </dx:ASPxTextBox>
                                                                        </td>
                                                                    </tr>
                                                                </table>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td>
                                                                <table cellpadding="0" cellspacing="0" class="style7">
                                                                    <tr>
                                                                        <td class="style2">
                                                                            <dx:ASPxLabel ID="ASPxLabel29" runat="server" Text="开户银行：">
                                                                            </dx:ASPxLabel>
                                                                        </td>
                                                                        <td class="style8">
                                                                            <dx:ASPxTextBox ID="ASPxTextBox22" runat="server" 
                                                                                Text='<%# Bind("BankAccountName") %>' Width="500px">
                                                                            </dx:ASPxTextBox>
                                                                        </td>
                                                                    </tr>
                                                                </table>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td>
                                                                <table cellpadding="0" cellspacing="0" class="style7">
                                                                    <tr>
                                                                        <td class="style2">
                                                                            <dx:ASPxLabel ID="ASPxLabel30" runat="server" Text="企业规模：">
                                                                            </dx:ASPxLabel>
                                                                        </td>
                                                                        <td class="style8">
                                                                            <dx:ASPxMemo ID="ASPxMemo1" runat="server" Height="71px" 
                                                                                Text='<%# Bind("CompanyScale") %>' Width="500px">
                                                                            </dx:ASPxMemo>
                                                                        </td>
                                                                    </tr>
                                                                </table>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td>
                                                                <table cellpadding="0" cellspacing="0" class="style7">
                                                                    <tr>
                                                                        <td class="style2">
                                                                            <dx:ASPxLabel ID="ASPxLabel31" runat="server" Text="企业简介：">
                                                                            </dx:ASPxLabel>
                                                                        </td>
                                                                        <td class="style8">
                                                                            <dx:ASPxMemo ID="ASPxMemo2" runat="server" Height="71px" 
                                                                                Text='<%# Bind("CompanyBrief") %>' Width="500px">
                                                                            </dx:ASPxMemo>
                                                                        </td>
                                                                    </tr>
                                                                </table>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td>
                                                                <table cellpadding="0" cellspacing="0" class="style7">
                                                                    <tr>
                                                                        <td class="style2">
                                                                            <dx:ASPxLabel ID="ASPxLabel32" runat="server" Text="备注：">
                                                                            </dx:ASPxLabel>
                                                                        </td>
                                                                        <td class="style8">
                                                                            <dx:ASPxMemo ID="ASPxMemo3" runat="server" Height="71px" 
                                                                                Text='<%# Bind("Notes") %>' Width="500px">
                                                                            </dx:ASPxMemo>
                                                                        </td>
                                                                    </tr>
                                                                </table>
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </td>
                                                <td>
                                                    <table cellpadding="0" cellspacing="0" class="style9">
                                                        <tr>
                                                            <td>
                                                                <dx:ASPxLabel ID="ASPxLabel37" runat="server" Text="企业LOGO：">
                                                                </dx:ASPxLabel>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td style="text-align: center">
                                                                <asp:Image ID="imgc" runat="server" Height="120px" style="text-align: center" ImageUrl='<%# "/Images/Company/"+Eval("CompanyLogo")%>'
                                                                    Width="120px" />
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td>
                                                                <table cellpadding="0" cellspacing="0" class="style6">
                                                                    <tr>
                                                                        <td>
                                                                            <asp:FileUpload ID="FileUploadc" runat="server" />
                                                                        </td>
                                                                        <td>
                                                                            &nbsp;</td>
                                                                        <td>
                                                                            <dx:ASPxButton ID="abtnuploadclogo" runat="server" 
                                                                                onclick="abtnuploadclogo_Click" Text="上传">
                                                                            </dx:ASPxButton>
                                                                        </td>
                                                                    </tr>
                                                                </table>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td>
                                                                <dx:ASPxLabel ID="ASPxLabel38" runat="server" Text="商标LOGO:">
                                                                </dx:ASPxLabel>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td style="text-align: center">
                                                                <asp:Image ID="imgb" runat="server" Height="120px" Width="120px" ImageUrl='<%# "/Images/Brand/"+Eval("BrandingLogo")%>' />
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td>
                                                                <table cellpadding="0" cellspacing="0" class="style6">
                                                                    <tr>
                                                                        <td>
                                                                            <asp:FileUpload ID="FileUploadb" runat="server" />
                                                                        </td>
                                                                        <td>
                                                                            &nbsp;</td>
                                                                        <td>
                                                                            <dx:ASPxButton ID="abtnuploadblogo" runat="server" 
                                                                                onclick="abtnuploadblogo_Click" Text="上传">
                                                                            </dx:ASPxButton>
                                                                        </td>
                                                                    </tr>
                                                                </table>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td>
                                                                <dx:ASPxGridView ID="ASPxGridView2" runat="server" AutoGenerateColumns="False" 
                                                                    DataSourceID="ldscompanyindustry" KeyFieldName="Idx">
                                                                    <Columns>
                                                                        <dx:GridViewCommandColumn ButtonType="Button" Caption="操作" VisibleIndex="2">
                                                                            <NewButton Text="添加" Visible="True">
                                                                            </NewButton>
                                                                            <DeleteButton Text="删除" Visible="True">
                                                                            </DeleteButton>
                                                                            <UpdateButton Text="确定">
                                                                            </UpdateButton>
                                                                        </dx:GridViewCommandColumn>
                                                                        <dx:GridViewDataTextColumn FieldName="CompanyCode" ReadOnly="True" 
                                                                            Visible="False" VisibleIndex="0">
                                                                        </dx:GridViewDataTextColumn>
                                                                        <dx:GridViewDataComboBoxColumn Caption="行业类别" FieldName="IndustryId" 
                                                                            VisibleIndex="1" Width="200px">
                                                                            <PropertiesComboBox DataSourceID="lds_industry2" TextField="Name" 
                                                                                ValueField="Idx" ValueType="System.String">
                                                                            </PropertiesComboBox>
                                                                        </dx:GridViewDataComboBoxColumn>
                                                                    </Columns>
                                                                </dx:ASPxGridView>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td>
                                                                <asp:LinqDataSource ID="ldscompanyindustry" runat="server" 
                                                                    ContextTypeName="TravelLink.DAL.TravelLinkDBDataContext" EnableDelete="True" 
                                                                    EnableInsert="True" EntityTypeName="" 
                                                                    TableName="TL_Company_Industry" Where="CompanyCode == @CompanyCode" EnableViewState="False">
                                                                    <InsertParameters>
                                                                        <asp:ControlParameter DbType="Guid" Name="CompanyCode"  ControlID="alblcompanycode" PropertyName="Text" />
                                                                    </InsertParameters>
                                                                    <WhereParameters>
                                                                        <asp:ControlParameter ControlID="alblcompanycode" DbType="Guid" 
                                                                            Name="CompanyCode" PropertyName="Text" />
                                                                    </WhereParameters>
                                                                </asp:LinqDataSource>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td>
                                                                &nbsp;</td>
                                                        </tr>
                                                    </table>
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <table class="style1" cellpadding="0" cellspacing="0">
                                            <tr>
                                                <td class="style2">
                                                    <dx:ASPxLabel ID="ASPxLabel10" runat="server" Text="网址：">
                                                    </dx:ASPxLabel>
                                                </td>
                                                <td class="style4">
                                                    <dx:ASPxTextBox ID="ASPxTextBox6" runat="server" Text='<%# Bind("WebSite") %>' 
                                                        Width="800px">
                                                    </dx:ASPxTextBox>
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <table class="style1" cellpadding="0" cellspacing="0">
                                            <tr>
                                                <td class="style2">
                                                    <dx:ASPxLabel ID="ASPxLabel12" runat="server" Text="电话：">
                                                    </dx:ASPxLabel>
                                                </td>
                                                <td>
                                                    <dx:ASPxTextBox ID="ASPxTextBox8" runat="server" 
                                                        Text='<%# Bind("CompanyTel") %>' Width="300px">
                                                    </dx:ASPxTextBox>
                                                </td>
                                                <td class="style2">
                                                    <dx:ASPxLabel ID="ASPxLabel13" runat="server" Text="传真：">
                                                    </dx:ASPxLabel>
                                                </td>
                                                <td>
                                                    <dx:ASPxTextBox ID="ASPxTextBox9" runat="server" 
                                                        Text='<%# Bind("CompanyFax") %>' Width="300px">
                                                    </dx:ASPxTextBox>
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <table class="style1" cellpadding="0" cellspacing="0">
                                            <tr>
                                                <td  class="style2">
                                                    <dx:ASPxLabel ID="ASPxLabel14" runat="server" Text="邮编：">
                                                    </dx:ASPxLabel>
                                                </td>
                                                <td>
                                                    <dx:ASPxTextBox ID="ASPxTextBox10" runat="server" 
                                                        Text='<%# Bind("PostCode") %>' Width="300px">
                                                    </dx:ASPxTextBox>
                                                </td>
                                                <td  class="style2">
                                                    <dx:ASPxLabel ID="ASPxLabel15" runat="server" Text="邮箱：">
                                                    </dx:ASPxLabel>
                                                </td>
                                                <td>
                                                    <dx:ASPxTextBox ID="ASPxTextBox11" runat="server" Text='<%# Bind("Email") %>' 
                                                        Width="300px">
                                                    </dx:ASPxTextBox>
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <table class="style1" cellpadding="0" cellspacing="0">
                                            <tr>
                                                <td class="style2">
                                                    <dx:ASPxLabel ID="ASPxLabel16" runat="server" Text="企业类型：">
                                                    </dx:ASPxLabel>
                                                </td>
                                                <td>
                                                    <dx:ASPxComboBox ID="ASPxComboBox1" runat="server" Width="300px" 
                                                        DataSourceID="lds_Business" TextField="Name" Value='<%# Bind("BussinessId") %>' 
                                                        ValueField="Idx" ValueType="System.Int32">
                                                    </dx:ASPxComboBox>
                                                </td>
                                                <td  class="style2">
                                                    <dx:ASPxLabel ID="ASPxLabel17" runat="server" Text="城市：">
                                                    </dx:ASPxLabel>
                                                </td>
                                                <td>
                                                    <dx:ASPxComboBox ID="ASPxComboBox2" runat="server" Width="300px" 
                                                        DataSourceID="lds_city" TextField="CName" Value='<%# Bind("CityId") %>' 
                                                        ValueField="Idx" ValueType="System.Int32">
                                                    </dx:ASPxComboBox>
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <table cellpadding="0" cellspacing="0" class="style1">
                                            <tr>
                                                <td class="style2">
                                                    <dx:ASPxLabel ID="ASPxLabel11" runat="server" Text="地址：">
                                                    </dx:ASPxLabel>
                                                </td>
                                                <td class="style4">
                                                    <dx:ASPxTextBox ID="ASPxTextBox7" runat="server" Text='<%# Bind("Address") %>' 
                                                        Width="800px">
                                                    </dx:ASPxTextBox>
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <table cellpadding="0" cellspacing="0" class="style1">
                                            <tr>
                                                <td class="style2">
                                                    <dx:ASPxLabel ID="ASPxLabel18" runat="server" Text="联系人：">
                                                    </dx:ASPxLabel>
                                                </td>
                                                <td>
                                                    <dx:ASPxTextBox ID="ASPxTextBox12" runat="server" 
                                                        Text='<%# Bind("ContactPerson") %>' Width="200px">
                                                    </dx:ASPxTextBox>
                                                </td>
                                                <td class="style2">
                                                    <dx:ASPxLabel ID="ASPxLabel19" runat="server" Text="称谓：">
                                                    </dx:ASPxLabel>
                                                </td>
                                                <td>
                                                    <dx:ASPxComboBox ID="ASPxComboBox3" runat="server" Width="200px" 
                                                        DataSourceID="lds_title" TextField="CName" 
                                                        Value='<%# Bind("ContactTitleID") %>' ValueField="Idx" ValueType="System.Int32">
                                                    </dx:ASPxComboBox>
                                                </td>
                                                <td class="style2">
                                                    <dx:ASPxLabel ID="ASPxLabel20" runat="server" Text="职位：">
                                                    </dx:ASPxLabel>
                                                </td>
                                                <td>
                                                    <dx:ASPxTextBox ID="ASPxTextBox13" runat="server" 
                                                        Text='<%# Bind("ContactPosition") %>' Width="200px">
                                                    </dx:ASPxTextBox>
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <table cellpadding="0" cellspacing="0" class="style1">
                                            <tr>
                                                <td  class="style2">
                                                    <dx:ASPxLabel ID="ASPxLabel21" runat="server" Text="电话：">
                                                    </dx:ASPxLabel>
                                                </td>
                                                <td>
                                                    <dx:ASPxTextBox ID="ASPxTextBox14" runat="server" 
                                                        Text='<%# Bind("ContactTel") %>' Width="300px">
                                                    </dx:ASPxTextBox>
                                                </td>
                                                <td  class="style2">
                                                    <dx:ASPxLabel ID="ASPxLabel22" runat="server" Text="移动电话：">
                                                    </dx:ASPxLabel>
                                                </td>
                                                <td>
                                                    <dx:ASPxTextBox ID="ASPxTextBox15" runat="server" 
                                                        Text='<%# Bind("ContactMobile") %>' Width="300px">
                                                    </dx:ASPxTextBox>
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <table class="style1">
                                            <tr>
                                                <td  class="style2">
                                                    <dx:ASPxLabel ID="ASPxLabel33" runat="server" Text="创建日期：">
                                                    </dx:ASPxLabel>
                                                </td>
                                                <td>
                                                    <dx:ASPxLabel ID="ASPxLabel34" runat="server" Text='<%# Bind("CreateDate") %>'>
                                                    </dx:ASPxLabel>
                                                </td>
                                                <td  class="style2">
                                                    <dx:ASPxLabel ID="ASPxLabel35" runat="server" Text="更新日期：">
                                                    </dx:ASPxLabel>
                                                </td>
                                                <td>
                                                    <dx:ASPxLabel ID="ASPxLabel36" runat="server" Text='<%# Bind("UpdateTime") %>'>
                                                    </dx:ASPxLabel>
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <table cellpadding="0" cellspacing="0" class="style6">
                                            <tr>
                                                <td align="right">
                                                    <dx:ASPxButton ID="abtnAdd" Width="100px" runat="server" AutoPostBack="False" Text="保存">
                                                        <ClientSideEvents Click="function(s, e) {
	agvcompany.UpdateEdit();
}" />
                                                    </dx:ASPxButton>
                                                </td>
                                                <td align="left">
                                                    <dx:ASPxButton ID="ASPxButton2" Width="100px" runat="server" AutoPostBack="False" Text="取消">
                                                        <ClientSideEvents Click="function(s, e) {
	agvcompany.CancelEdit();
}" />
                                                    </dx:ASPxButton>
                                                </td>
                                                <td>
                                                    &nbsp;</td>
                                                <td>
                                                    &nbsp;</td>
                                                <td>
                                                    &nbsp;</td>
                                                <td>
                                                    &nbsp;</td>
                                                <td>
                                                    &nbsp;</td>
                                                <td>
                                                    &nbsp;</td>
                                                <td>
                                                    &nbsp;</td>
                                                <td>
                                                    &nbsp;</td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>                               
                            </table>
                        </EditForm>
                    </Templates>
                </dx:ASPxGridView>
                <asp:LinqDataSource ID="LinqDataSource1" runat="server" 
                    ContextTypeName="TravelLink.DAL.TravelLinkDBDataContext" EnableDelete="True" 
                    EnableInsert="True" EnableUpdate="True" EnableViewState="False" 
                    EntityTypeName="" OrderBy="CreateDate" 
                    TableName="TL_Company">
                </asp:LinqDataSource>
                <asp:LinqDataSource ID="lds_title" runat="server" 
                    ContextTypeName="TravelLink.DAL.TravelLinkDBDataContext" EntityTypeName="" 
                    OrderBy="SortID" TableName="TL_Title">
                </asp:LinqDataSource>
                <asp:LinqDataSource ID="lds_city" runat="server" 
                    ContextTypeName="TravelLink.DAL.TravelLinkDBDataContext" EntityTypeName="" 
                    OrderBy="SortId" TableName="TL_City">
                </asp:LinqDataSource>
                <asp:LinqDataSource ID="lds_Business" runat="server" 
                    ContextTypeName="TravelLink.DAL.TravelLinkDBDataContext" EntityTypeName="" 
                    OrderBy="SortID" TableName="TL_BussinessType">
                </asp:LinqDataSource>
                <asp:LinqDataSource ID="lds_industry2" runat="server" 
                    ContextTypeName="TravelLink.DAL.TravelLinkDBDataContext" EntityTypeName="" 
                    OrderBy="SortID" TableName="TL_IndustryType2">
                </asp:LinqDataSource>
                <dx:ASPxGridViewExporter ID="ASPxGridViewExporter1" runat="server" 
                    GridViewID="ASPxGridView1">
                </dx:ASPxGridViewExporter>
            </td>
        </tr>
    </table>
</asp:Content>
